# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
# Maintainer: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
pkgname=py3-webpy
_pkgorig=webpy
pkgver=0.62
pkgrel=0
pkgdesc="A web framework for python that is as simple as it is powerful"
url="https://www.webpy.org"
arch="noarch"
license="Public Domain and BSD"
depends="python3 py3-cheroot"
makedepends="py3-setuptools"
checkdepends="python3-dev py3-pytest"
source="https://github.com/webpy/webpy/archive/$pkgver/$_pkgorig-$pkgver.tar.gz"
builddir="$srcdir/$_pkgorig-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 -m pytest -k 'not test_routing'
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
2b91977bb78e9387c78ed893b098d665a5189e7b9cb1eacbaf903564285524dabc960107b0e1ba4a85c3aedf73ef63ae05338cc71ccacad47a310970afb77cd9  webpy-0.62.tar.gz
"
